amends ".../snippetTest.pkl"

import "package://localhost:0/birds@0.5.0#/Bird.pkl"
import "package://localhost:0/fruit@1.0.5#/Fruit.pkl"

examples {
  ["basic imports"] {
    new Bird { 
      name = "Pigeon"
      // purposefully instantiate a Fruit to verify that the types match up.
      favoriteFruit = new Fruit {
        name = "Banana"
      }
    }
    import("package://localhost:0/birds@0.5.0#/catalog/Swallow.pkl")
    import("package://localhost:0/birds@0.5.0#/catalog/Ostrich.pkl")
  }
  ["importing while specifying checksum"] {
    import("package://localhost:0/birds@0.5.0::sha256:b27206b80f4f227752b6f02143887f3ea41e554542cec38f7b572b987566c4de#/catalog/Swallow.pkl")
  }
  ["reads"] {
    read("package://localhost:0/birds@0.5.0#/Bird.pkl")
    read("package://localhost:0/birds@0.5.0#/catalog/Swallow.pkl")
    read("package://localhost:0/birds@0.5.0#/catalog/Ostrich.pkl")
  }
}
